package com.ygsoft.tianlu_mall.service.impl;

import com.ygsoft.tianlu_mall.mapper.EvaluationMapper;
import com.ygsoft.tianlu_mall.pojo.Evaluation;
import com.ygsoft.tianlu_mall.pojo.EvaluationVO;
import com.ygsoft.tianlu_mall.service.EvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvaluationImpl implements EvaluationService {
    @Autowired
    EvaluationMapper evaluationMapper;

    @Override
    public List<Evaluation> getEvaluationsById(int evaluation_userid)
    {return evaluationMapper.getEvaluationsById(evaluation_userid);}

    @Override
    public List<Evaluation> getEvaluationsDetail(int evaluation_id)
    {return evaluationMapper.getEvaluationsDetail(evaluation_id);}

    @Override
    public List<Evaluation> getEvaluationsDetailByOrder(int order_id)
    {return evaluationMapper.getEvaluationsDetailByOrder(order_id);}

    @Override
    public List<EvaluationVO> getEvaluationVOById(int evaluation_userid)
    {return evaluationMapper.getEvaluationVOById(evaluation_userid);}
}
